package cn.cqone.crm.mapper;

import cn.cqone.crm.domain.Employee;
import cn.cqone.crm.query.EmployeeQuery;

public interface EmployeeMapper extends BaseMapper<Employee,Long, EmployeeQuery>{
    Employee findByName(String name);
    Long findTenantId(String username);

    //根据用户id和角色id分配角色
    void updateEmployeeRoleById(Long employeeId,Long roleId);
}
